import request from '@/utils/request';
/**
 * 登录API
 *
 * @param data {LoginData}
 * @returns
 */
export function register(data: any) {
	return request({
	  url: "/member/register",
	  method: "post",
	  data: data,
	  headers: {
		"Content-Type": "multipart/form-data",
	  },
	});
}
/**
 * 登录测试接口
 *
 * @param data {LoginData}
 * @returns
 */
export function testlogin(data: any) {
	return request({
	  url: "/member/testlogin",
	  method: "post",
	  data: data,
	  headers: {
		"Content-Type": "multipart/form-data",
	  },
	});
}
/**
 * 会话列表
 */
export function sessionlist(data:any) {
	return request({
		url: '/apiindex/sessionlist',
		method: 'post',
        data:data
	});
}
/**
 * 会话列表
 */
export function chathistory(data:any) {
	return request({
		url: '/apiindex/chathistory',
		method: 'post',
        data:data
	});
}
/**
 * 删除会话
 */
export function delsession(data:any) {
	return request({
		url: '/apiindex/delsession',
		method: 'post',
        data:data
	});
}
/**
 * 点赞
 */
export function likerecord(data:any) {
	return request({
		url: '/apiindex/likerecord',
		method: 'post',
        data:data
	});
}
/**
 * 置顶
 */
export function topsession(data:any) {
	return request({
		url: '/apiindex/topsession',
		method: 'post',
        data:data
	});
}
/**
 * 编辑会话标题
 */
export function editsessiontitle(data:any) {
	return request({
		url: '/apiindex/editsessiontitle',
		method: 'post',
        data:data
	});
}
/**
 * 基本信息
 */
export function configinfo(data:any) {
	return request({
		url: '/apiindex/configinfo',
		method: 'post',
        data:data
	});
}
/***
*** 获取验证码
***/
export function sendCode(data:any) {
    return request({
        url: '/member/send_code',
        method: 'post',
        data
    })
}
/***
*** 聊天接口
***/
export function getsession(data:any) {
    return request({
        url: '/apiindex/index',
        method: 'post',
        data
    })
}
/***
*** 问题反馈
***/
export function quesFeed(data:any) {
    return request({
        url: '/apiindex/feedback',
        method: 'post',
        data
    })
}
/***
*** 功能反馈
***/
export function useFeed(data:any) {
    return request({
        url: '/apiindex/usefeedback',
        method: 'post',
        data
    })
}
/***
*** 重新生成
***/
export function rebuild(data:any) {
    return request({
        url: '/apiindex/rebuild',
        method: 'post',
        data
    })
}
/***
*** 获取会话token
***/
export function chatone(data:any) {
    return request({
        url: '/apiindex/chatone',
        method: 'post',
        data
    })
}
/***
*** 第三步(入库聊天数据)
***/
export function chatthree(data:any) {
    return request({
        url: '/apiindex/chatthree',
        method: 'post',
        data
    })
}
/***
*** 重新生成
***/
export function rebuildchat(data:any) {
    return request({
        url: '/apiindex/rebuildchat',
        method: 'post',
        data
    })
}
/***
*** 获取相关链接地址
***/
export function chattwo(data:any) {
    return request({
        url: '/apiindex/chattwo',
        method: 'post',
        data
    })
}
/***
*** 获取用户信息
***/
export function memberinfo(data:any) {
    return request({
        url: '/apiindex/memberinfo',
        method: 'post',
        data
    })
}
/***
*** 角色列表
***/
export function rolelist(data:any) {
    return request({
        url: '/member/rolelist',
        method: 'post',
        data
    })
}
/***
*** 产业列表
***/
export function industrylist(data:any) {
    return request({
        url: '/member/industrylist',
        method: 'post',
        data
    })
}
/***
*** 完善信息
***/
export function completeinfo(data:any) {
    return request({
        url: '/member/completeinfo',
        method: 'post',
        data
    })
}
/***
*** 第四步
***/
export function chatfour(data:any) {
    return request({
        url: '/apiindex/chatfour',
        method: 'post',
        data
    })
}
/***
*** 新手指引状态
***/
export function updatehelpstatus(data:any) {
    return request({
        url: '/apiindex/updatehelpstatus',
        method: 'post',
        data
    })
}
/***
*** 新 会话列表
***/
export function newsessionlist(data:any) {
    return request({
        url: '/apiindex/newsessionlist',
        method: 'post',
        data
    })
}
/***
*** 商品列表
***/
export function goodsindex(data:any) {
    return request({
        url: '/apiindex/goodsindex',
        method: 'post',
        data
    })
}
/***
*** 商品列表
***/
export function membergradelog(data:any) {
    return request({
        url: '/apiindex/membergradelog',
        method: 'post',
        data
    })
}
/***
*** 商品列表
***/
export function goodsview(data:any) {
    return request({
        url: '/apiindex/goodsview',
        method: 'post',
        data
    })
}
/***
*** 商品列表
***/
export function exchangegoods(data:any) {
    return request({
        url: '/apiindex/exchangegoods',
        method: 'post',
        data
    })
}
/***
*** 修改用户信息
***/
export function updatememberinfo(data:any) {
    return request({
        url: '/apiindex/updatememberinfo',
        method: 'post',
        data
    })
}
/***
*** 文本转语言接口	 
***/
export function getvoicefile(data:any) {
    return request({
        url: '/apiindex/getvoice',
        method: 'post',
        data
    })
}
/***
*** 查询生成状态接口	 
***/
export function getvoicestatus(data:any) {
    return request({
        url: '/apiindex/getvoicestatus',
        method: 'post',
        data
    })
}
/***
*** 计算器	 
***/
export function calculatorList(data:any) {
    return request({
        url: '/apiqa/calculatorList',
        method: 'post',
        data
    })
}
export function ranklist(data:any) {
    return request({
        url: '/apiindex/ranklist',
        method: 'post',
        data
    })
}
/***
*** 固定问答对检索	 
***/
export function searchAnswer(data:any) {
    return request({
        url: '/apiqa/searchAnswer',
        method: 'post',
        data
    })
}
/***
*** 固定问答对检索	 
***/
export function searchAnswerById(data:any) {
    return request({
        url: '/apiqa/searchAnswerById',
        method: 'post',
        data
    })
}
/***
*** 固定问答对检索	 
***/
export function chathistorytest(data:any) {
    return request({
        url: '/apiindex/chathistorytest',
        method: 'post',
        data
    })
}
/***
*** 计算器调取	 
***/
export function calculatorindex(data:any) {
    return request({
        url: '/Calculatorapiindex/calculatorindex',
        method: 'post',
        data
    })
}
/***
*** 完善聊天记录	 
***/
export function completehistoryrecord(data:any) {
    return request({
        url: '/Calculatorapiindex/completehistoryrecord',
        method: 'post',
        data
    })
}
/***
*** 图纸反馈	 
***/
export function drawingfeedback(data:any) {
    return request({
        url: '/apiindex/drawingfeedback',
        method: 'post',
        data
    })
}
/***
*** 删除会话	 
***/
export function deletehistoryrecord(data:any) {
    return request({
        url: '/apiindex/deletehistoryrecord',
        method: 'post',
        data
    })
}
/***
*** 搜索政策	 
***/
export function searchRule(data:any) {
    return request({
        url: '/apiqa/searchRule',
        method: 'post',
        data
    })
}
/***
*** 第一步(appbuilder版)	 
***/
export function chatonetest(data:any) {
    return request({
        url: '/apiindex/chatonetest',
        method: 'post',
        data,
    })
}
/***
*** 获取appid	 
***/
export function appconfiginfo(data:any) {
    return request({
        url: '/apiindex/appconfiginfo',
        method: 'post',
        data,
    })
}
export function commandindex(data:any) {
    return request({
        url: '/commandapiindex/commandindex',
        method: 'post',
        data
    })
}
export function getbestcommandindex(data:any) {
    return request({
        url: '/commandapiindex/bestcommandindex',
        method: 'post',
        data
    })
}
export function commandclassindex(data:any) {
    return request({
        url: '/commandapiindex/commandclassindex',
        method: 'post',
        data
    })
}
export function classcommandindex(data:any) {
    return request({
        url: '/commandapiindex/classcommandindex',
        method: 'post',
        data
    })
}
export function searchcommandindex(data:any) {
    return request({
        url: '/commandapiindex/searchcommandindex',
        method: 'post',
        data
    })
}
export function clickcommand(data:any) {
    return request({
        url: '/commandapiindex/clickcommand',
        method: 'post',
        data
    })
}
// 默认全部导出
export default {
    appconfiginfo,
    chatonetest,
    clickcommand,
    searchcommandindex,
    classcommandindex,
    commandclassindex,
    getbestcommandindex,
    commandindex,
    searchRule,
    deletehistoryrecord,
    ranklist,
	register,
    testlogin,
    sessionlist,
	chathistory,
	delsession,
	likerecord,
	topsession,
	editsessiontitle,
	configinfo,
	sendCode,
	getsession,
	quesFeed,
	useFeed,
	rebuild,
	chatone,
	chatthree,
	rebuildchat,
	chattwo,
    memberinfo,
    industrylist,
    rolelist,
    completeinfo,
    chatfour,
	updatehelpstatus,
    newsessionlist,
    goodsindex,
    membergradelog,
    goodsview,
    exchangegoods,
    updatememberinfo,
    getvoicefile,
    getvoicestatus,
    calculatorList,
    searchAnswer,
    searchAnswerById,
    chathistorytest,
    calculatorindex,
    completehistoryrecord,
    drawingfeedback
}